// Author: Chris Whitbread
// Date: 12/01/2011
// Description: Global webservice for Salesforce Winter '11 edition
// 				Used to return the current ABR registered name for a given ABN
global class ABR {
	WebService static String SendABR(string id) {

		abrBusinessGovAuAbrxmlsearch.ABRXMLSearchSoap a = new abrBusinessGovAuAbrxmlsearch.ABRXMLSearchSoap();
		abrBusinessGovAuAbrxmlsearch.ABRSearchByASICResponse_element res = new abrBusinessGovAuAbrxmlsearch.ABRSearchByASICResponse_element();
		
		res.ABRPayloadSearchResults = a.SearchByABNv200506(id, 'N', '670b4400-5ead-4962-9d81-ace58f7cea97');
	return res.ABRPayloadSearchResults.response.businessEntity200506.mainName.organisationName;
		
	
	}
}